Web API Core | ComponentOne
C1.Web.Api.Pdf Namespace / PdfController Class / File Method / File(Func<Stream>,String) Method
The function to get a System.IO.Stream with the contents of the file.
The file full name.

In This Topic
    File(Func<Stream>,String) Method
    In This Topic
    Returns a file in the specified fileStream with the full file name.
    Syntax
    'Declaration
     
    
    <DoNotObfuscateAttribute()>
    Protected Overloads Overridable Function File( _
       ByVal streamGetter As Func(Of Stream), _
       ByVal fullFileName As String _
    ) As IActionResult
    [DoNotObfuscate()]
    protected virtual IActionResult File( 
       Func<Stream> streamGetter,
       string fullFileName
    )

    Parameters

    streamGetter
    The function to get a System.IO.Stream with the contents of the file.
    fullFileName
    The file full name.

    Return Value

    A file result for the response.
    See Also